﻿@model MvcJE.Core.Inet.MopModule

<tr @if (Model != null) {
    @:data-pkey="@Model.MopModuleId"
}>
    <td>
        @Html.EditorFor(model => model.Title)
        @Html.ValidationMessageFor(model => model.Title)
    </td>
    <td>
        @Html.DropDownList("MopModuleGroupId", String.Empty)
        @Html.ValidationMessageFor(model => model.MopModuleGroupId)
    </td>
    <td  class="hidden">
        @Html.TextAreaFor(model => model.Template)
        @Html.ValidationMessageFor(model => model.Template)
    </td>
    <td  class="hidden">
        @Html.EditorFor(model => model.Notes)
        @Html.ValidationMessageFor(model => model.Notes)
    </td>
    <td>
        @Html.EditorFor(model => model.CreatedBy)
        @Html.ValidationMessageFor(model => model.CreatedBy)
    </td>
    <td  class="hidden">
        @Html.EditorFor(model => model.Attributes)
        @Html.ValidationMessageFor(model => model.Attributes)
    </td>
    <td  class="hidden">
        @Html.EditorFor(model => model.DateCreated)
        @Html.ValidationMessageFor(model => model.DateCreated)
    </td>
    <td >
        @Html.EditorFor(model => model.DateUpdated)
        @Html.ValidationMessageFor(model => model.DateUpdated)
    </td>
    <td>
@if (ViewContext.RouteData.Values["Action"].ToString() == "Edit")
{
        <button class="editRow">Save</button><button class="cancelEditRow">Cancel</button>
}
else
{
        <button class="createRow">Create</button><button class="cancelCreateRow">Cancel</button>
}
    </td>
</tr>
